#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <string.h>

int main(int argc, char **argv)
{
    const char *domain = NULL;
    struct addrinfo *res = NULL;
    struct addrinfo hints = {0};
    int rc = -1;

    if (argc != 2)
        return -1;

    domain = argv[1];
    memset(&hints, 0 , sizeof(hints));
    hints.ai_family = AF_INET6;
    hints.ai_socktype = SOCK_DGRAM;
    hints.ai_protocol = IPPROTO_IP;

    rc = getaddrinfo(domain, NULL, &hints, &res);

    return 0;
}
